package com.own.component.device.property;

import com.own.constant.ConstantRequestManager;
import com.own.constant.ConstantValue;
import lombok.Data;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * DeviceProperty
 *
 * @author chenxueli
 * @date 2024-03-15 11:31:50
 */
@Data
@SpringBootConfiguration
@ConfigurationProperties(prefix = DeviceProperty.PREFIX)
public class DeviceProperty {

    public static final String PREFIX = ConstantValue.CONFIG_VALUE_CONTENT + "device";

    /**
     * 设备的id字段
     */
    private String deviceIdField = "device-id";

    /**
     * 数据获取来源
     */
    private ConstantRequestManager.RequestFieldSourceType fieldSourceType = ConstantRequestManager.RequestFieldSourceType.HEADER;

}
